package ysq.xyg.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 测试仪
 * */
@Table(name = "bohu_device")
public class Device implements Serializable {
    @Id
    private int id;
    //设备id
    @Column(name = "deviceId")
    private String deviceId;
    //当前城市
    @Column(name = "now_city")
    private String nowCity;

    //类型：1-18具体的看给的文档
    private String type;
    //剩余电量:1-100之间
    private String bat;
    //操作时间
    private Date date;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getNowCity() {
        return nowCity;
    }

    public void setNowCity(String nowCity) {
        this.nowCity = nowCity;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBat() {
        return bat;
    }

    public void setBat(String bat) {
        this.bat = bat;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Device() {
    }

    public Device(String deviceId) {
        this.deviceId = deviceId;
    }
}